package com.istock.union.user.security.impl;

import org.springframework.beans.factory.annotation.Autowired;

import com.istock.base.common.api.model.ApiBaseResponse;
import com.istock.union.user.model.SSOUser;
import com.istock.union.user.service.SSOUserService;
import com.istock.union.user.service.UserInfoService;

public class SSOUserServiceImpl implements SSOUserService {

	@Autowired
	private UserInfoService userInfoService;
	
	public void setUserInfoService(UserInfoService userInfoService) {
		this.userInfoService = userInfoService;
	}

	@Override
	public ApiBaseResponse<SSOUser> checkPasswd(String userName, String passwd, String tenantCode) {
		return userInfoService.checkPasswd(userName, passwd, tenantCode);
	}

}
